#31 adding delegate feature for open/close animation