added views and controllers. Also fixed links