Update 2-5-migration-guide.rst

Added description on how to assign a title now $title_for_layout is deprecated