moved methods from onActivityCreated to separate
moved methods outside of onActivityCreated