Fix merge problems

Replace reqResponse("app:projectDirectory") by screencastController.getProjectDirectory()
Remove extra declaration of onPreview