All buildings and structures, both existing and new, and all parts thereof, shall be maintained in a safe and sanitary condition. All devices or safeguards which are required by this chapter in a building erected, altered or repaired, shall be maintained in good working order. The owner, or his designated agent, shall be responsible for the maintenance of buildings and structures.