fixed bug -calling wrong veiw