added conditional rendering based on shift status