Added anagram function to view