basic view structure based on session