worked on sharing state for when I introduce more controllers