Added support for multiple tabs and fragments