seperated nice ajax into new file