Moved most of the php-code and the css to separate files