Adding preview/edit buttons