making a frame of main view, picture view, router, templates