added methods for hiding keyboard