openComponent Function in appBrain