bit more work on ui; view manager isn't quit working as it ought (TODO: debug this)