Save, cancel is now working using $location service