passing element to which render the view