fixed post edit restrictions, consolidated slug functionality to module