fix boarder issue and the issue where if terminal is clicked the page will scroll to top