fixed bugs

wait till animation is done; prevent mass clicking