Added code bases in Draw class

Added a code base for component placement and click events