more style changes, moved some style to javascript