some css fix and a major bug found