Fixed edit url to use instance object and NOT mongo query - #928