added buttons and backend code to set valid offers invalid