fix panel dismiss & scroll