added the view button but still not working