tidy code, added some classes, minor edits for future mobile design