Added after_create hook to change url