add background, and add in/out state for animation