fixed some hudlayout problems