StateManager - Controller with functions for managing states