get and post for add model now works