Implemented button action and text field delegate.