Added widget header buttons, removed cookie creation from the destroy function