refactor css out into Fragment