added restful controller