removed redundant button handling code