fixed routes error
created and tested controller