changed slug assignment to before_save