Added popup on rect click