the frame closes when page is refreshed

i'm using this app to schedule hair appointments, however when you select a service to view available times the refresh closes the frame and restarts the form.

is there anything i can do short of using a different template?

maybe take a look at houseofcomyns.com/haironthego/

thanks!