added candle image action and simplified ajax stuff