using widget class to fix positions