added format to ajax action