remove unused functions - factor out DOM IDs - minor bugfix and css tweaks