Added state for when view