edited viewR but not working
edited viewR