Serialize json by actions and disable buttons on the ajax request