fixed bug with page rendering in views