maved ajax commands to new file ajax_commands.js