added new rules for tabs on smaller screens and cleared a few things