removed black bar from top unless a flash message is to be displayed