fixing serverside view rendering issue