closes status bar panel after button click