added option to override default action of close map view button