add behaviors, handle multiple browsers