i changed the function name in views and changed other related things