class ajaxmodel a model to handle ajax requests