Add logic to End Fragment.