Fixed modal layout issues