Caio Luca,
Sorry for the delay in getting Xcode installed to get you this image that you may be able to get the Workflow working. I cannot make sense of the UI elements and hierarchy and how it works in your code. Hopefully you can help!
https://www.dropbox.com/s/soypabzj3yg16ep/ScaledResolutionsRMBP13Late2013.jpg
Thanks,
David