made frontpage query based on session value