Updated views to use checkRoles() instead of role directly.