Added functionality for minimising the menu