1. minior update for crud dialog html

2. update logic to be better for crud dialog autosieze