fixed bad dependency in karma
made dialogs properly modal (black background etc.)
click background to dismiss