Added a slug generator and fixed editing slug