directive for tab control and applied it to admin page