add the method of 'layout()' to move the view