Creating a different constructor for the status bar control