Fixes for ajax and show/hide
Adding environment support for widgets