fixes #7121 - move smart proxy action buttons to helper

I wasn't sure if there was a technical reason I was missing. 
If it's the same I would prefer it was in one `if` for clarity