fixed #833

swapped order so that gui reparents before rescheduling.

This ensures the path of the block's active flag as received back from server reflects the path in the gui