made delete button only show up when not in edit mode since it looks a bit confusing otherwise