separated CSS and PHP; improved code