added spinner. switched to jquery for finding things. its easier