multiple fixes and rewriting the library to be css controlled.