Separate selector code from my app code