change tags hirarchy and add scrollbar to main tag