added double side support to materail editor