Refactor FlipperFragment