Quite happy with most of the UI code now... resizing needs some work though.