setting up flatplan view and edit