Cam Tensioner Problems

I had some problems with cam tensioner and I am not sure how to fix it. The atv was making a clicking noise wasn’t sure what it was so just kept driving it after watching videos on youtube and thinking it was normal. Well was driving it and the machine says low oil. So I shut it off and looked around. Oil was draining out from somewhere. Well come to find out the green part I have circled fell out. Then the red part fell out also. I decided to try an fix it (not knowing what I was doing). I got the red part screwed back in, but it is not far enough in to get the green part with spring on it screwed back on. This is all on the back cylinder so it is hard to get to. Is there any way to get the red part screwed back in. How tight does it need to be. Anything else I need to know? Any input is appreciated. This is on my bosses Can Am 570xt with 2000 miles not my 570.

Attached Images
File Type: jpg cam adjustor.jpg (147.3 KB)