make flyouts more flexible

fixes issue #46