set widget position with layout