Set attributes to private
Create API for MiddlePanel