Renamed edit mode methods and moved closeKeyboard to own method.