Popup refactor

1. Move all style properties to widget.tss
2. Create close button dynamicaly to make widget more independence
3. Cleanup
avoid try blocks as they perform really slow. Check var values instead, please