Refactoring to include hook for adding css and js for widgets
Adding stub for advance widget