added a null check on classname
improvements to css helper, ability to close it for a session, etc.