Preview fix and edit exercise fix