Added plugin to autoclose elements