remove remote:true, add get and post to .js file