Added state changing to GUI and new tab