Added available_widgets parameter. Merged core and custom widgets