form designer fixes.

Popoup and parent fixes.
Merge pull request #177 from CynicRus/master

Form designer fixes.