model and view its now working fine