[BISERVER-11310] - Added mode param to prevent z-index issues

@pamval please review