setting up correct delegate methods in main view