Added new error 404 template and fixed pagination