Veiw table is not working