Implement the ajax action on assignment