application helper updated for sessions