Moved displaying legislators to a method