corect redirect url
as a jquery plugin
replay app state with back and next button