handling click inside triangle. needs improvement