Synthesis and biological activities of N,N-dimethyl-2-propen-1-amine derivatives