Adding Auto Close plugin