Added support for clicking on buttons.