tried to do ajax the inatra way