making top guides widget function