applied the border styles to main objects