Hide create/edit buttons when not relevant; fixes #717