Set bg based on initial load