Ui update

This is code pulled straight from buweb.