Controls on gui enabling and disabling