fixes to templates to work with new permissions, fixed available_issues