complete the algorithm of divider and added shadow for tab bar and navigation bar