refactor activity into fragement