updated controller
updated schema