issue with controller not initializing properly