Cleanup template code to not call irrelevant HTML UI elements when doing an account change