a bunch of front-end fixes