moded ajax files and added model