got the data model binded and fixed a problem with the rout