changes made so input boxes replace each other in the gui