Included a new JS event for  blocks changing layouts

This way we can set up some rich editors and other stuff