fixed page refreshing on add, integrated ace editor