Implemented tabview

My code worked on first try and I had no idea why!