Confinement And Interface Effects In Self Assembly of Functional Block Copolymers