Timing issues: When the view wasn't already rendered and refreshed, the edit mode / styling methods tried to access DOM elements. Fixed that by initially setting edit mode after the first view refresh happened.