oops js
fixed some issues on view