edits to views

made changes needed for role being an int rather than a string