added base for use case 2 and click when create polygon