Break out styles into separate function