Added callback, action and better defaults and closing