setting up revealcontroller