setting up the pattern for linking to different views