copied nate's store controller