several css bugs fixed