Modified code to save css and added php