add animation when finsh and manage back buttons on activity AND fragment