public page securing data before pageleave