Refactorated code in MenuBar & added ViewHandler