fixing the issue of both class and error views shown in report page at the first pageload