added greater functionality to the building upgrade menu
fixed a render bug with the upgrade menu