more jquery functionality and finally got the boxes working