fix wrong popup background height
pep8, small refactor