Fixed problem with tab divs not being closed properly