Retabbed and animation function