Added custom render method to widget