add listener
connect path and gl refresh