implementation method initState