fixed clickButton() in UI