trying to fix hide/show of loading div between states -- not hiding after returning to a previously built state