PRD-4615 & PRD-4581 unable to remove edit style rule

Fixed style editor so that we can now edit styles and add rules.  Saving now works.