Add session logic for show page Back button