Converted the class to a Fragment