fix weird layout issues when running in different broswers

Some layout displays incorrectly in different browsers, so I fix it