added the changing of arrow when the button is pressed
added support of the "expand menu" choice in the menu