Added more methods for the ui button.