Added layout priority to avoid exception
Do dismissal of panel on next runloop
Otherwise I have seen weird exceptions with sendAction