refactor code, create controller.js
Implement sorting and filter in Dashboard table
fix syntax in projects.html