move style codes to .css; adjust layout