some code cleanup
Refactored some templates and views
Fix changed password and modify inventory reports