Extracted drawPanel to View.Panel module
Added check action position for panel