removed redirect which breaks success message apearance, added ->text() call on success message and moved declaration of $cssContent template variable