Added function to control where UI shows up