added functionality for offer adding