changed declaration of banner and spinner to be more concise