update buy lottery logic
remove always trigger on ajax submit