fixed a stying issue where the box was too close to the edge of the page