added loadstart and loadend triggers