added medication controller