updated to RESTful routes