adding background mode and background notifications