update style to fit safari and firefox