changing type on submit
enablin back button view from action card view
removing unused code