added second state for navigation