add view and edit buttons