Changed CSS to fix bugs in safari