Proper background <-> frontend separation/communication