Adding handle_refresh to session