Adding custom event for the completion of the layout process