fixed bug where bg color wouldn't change on detail page load