beautify my code

fix the separate widget with the new api

fit widgets for single screen and duel screen