core functionalty for dynamic widget is complete.