adding logic of when to show upgrade GUI