added lens style and  template of callback function