changed function name to toggleEditBtn