remove renderWidget function from view