Adding ajax before and after function
Update the flash element to support multi parameters when using functions.