initial logic to draw border contents