Moving code which displays speakers widget in the separate function