Fix merge problems

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