add new EpdController.setMode() function, which accepts View as argument instead of Context