Design, synthesis and characterization of some nitrogen containing heterocycles as bioactive compounds