made selectBox work, as well as fade in/out of popups