added functionality to fav tab