refactor handler to use it as base for portlet. Remove Dialogs in robot test it fails on travis because of tkinter