Moved styling and code into separate files