Javascript function for select all is general and placed at appropriate place in dashboard.html