changed restful controller