now it returns differnet result when you click on different tab