make it can be accessed when ajax