mesages work with ajax

add alert autoclosing