added main controller, added views