added timeouts. this is still b uggy though with the whole ajax thing