updated adjust modal function and styles. version 1.15