added stackpanel
Implemented Fade out on closing