Refactor tab views to seperate files