layout for session and logic that identifies the type of session and make list group based on the same.