updated users show page
refactored all the javascript