display edit buttons only in logged in state