Modified detail fragment, implemented back button functionality.