modify appcontroller