Synthesis, physicochemical studies and biological screening of some new nitrogen containing heterocyclic compounds