Implemented tabs and adjusted everything to work with them