implement the onCreateView method