cleaned up model and controller of url