fix unique slug bugs, check unique slug when editing