Fix CSS properties and bugs