Move page logic to respective pages. Add checkin page.