use js instead of images + fix delete bug