moved all code and styles inline