implemented a simple counter to limit run-time for height optimisation
removed deprecated functionality from the menus