Function bindStatusBar