added active state to edit buttons