implement closeTabOnAppClick option