created view & controller for games