refactored some styles that were in the js into the css