Only shows edit buttons on edit