Converted MainActivity to Fragment