Finally fixed ajax error on creating designs page