solved bug in server
updated controllers.js