capture events to prevent app triggering (for example popups may hide on any click)
add missed basis.require
tweak style