Added listener to update the layout of the database when creating content.