add popup
move view into map options
remove debug code