Implementation of the add to account button in automatic activity