reset implementation to fix ajax