delete tab and pagechange using jquery