selection fixes + functional browser gate