initializing only when viewed. fixes flash buttons, saves load time.