prepare switch from post to ajax and adding backup