Add select method processing results; fix ajax.