Moved reset logic to client side

To make the server more performant we are going to do reseting in the
browser, also evaluation of changing pages will be done in the browser
as well.