Fixes View and Close buttons

thanks to @gadgetto for the fix
Closes modxcms/articles#104

(i submitted this PR to the splittingred fork as well)

Targeting the production branch as this is for a patch.