made adry generate function and added inline if statements
change timeout for ajax back to 6mins