fixed view file request and optimizated requests