add code for view and lat lon