added view rendering from controller
added view rendering from controller