working on background functionality for extension