toggling edit class