Refactoring. Uncovered GUI bug that would cause the server side to not be synced with the client, so it would always deactivate the stargate