Fixed a menu duplication issue upon successive runs of the app