Move settings function to menu. Remove original window