Implement role and controller filter for widgets.
Cleanup debug messages.