added check for onCreateView already existing