move statusbar to seperate file