changes to appcontroller