Added  right and left boxes when clicking the selected paragraph