Implemented initState