Refactored code for view - FXML by separating out header, footer and admin sidebar.