added a new custom prev tab func