Flats controller actions

Added flats controller actions and views