Added error reporting at view level

Now when there is an unhandled error while rendering a view, the error will be reported to buglog. This also fixes the issue in which when there is an error in the ajax part of the dashboard, the screen remained blank