Moving fragment to new class, fixed syntax errors thanks Ken