Updated Test case
Updaed GUI code for gate management