onclick functional for all shapes