remove the stausbar setup form a function call and put in a conditional block