added view rendering based on url changing