update and magit mode