View button now working