updated view and added controller