client js updated and view bug fixes