Creating ajax for administration