GUI one step at a time

preventing crashing when clicking buttons