Added tab bar and added handlers for switching between files