fixed a bunch of front end issues.