added medbay system and conditional rendering