viewR not working