refactor css into main