Refactor Fragment related code
Add state handle in Case