Add functionality for ajax tab loading