Most functionality added and working on DB, but not working in view