add auto resize modal