tabs function on admin page modified