added background mode to project