fixed ideas so ajax call works