locking/unlocking segments in admin and edit view