code refactoring

I changed the way to resize the modal view; layoutSubView does not call
any method any more;