moved activity things into a fragment