added ajax to view records