Add check and optional UI for admins, change some function names, add
utility function to fill out template context