now just need to change ajax command and write backend