Added action on close