Fixed a read only mode bug.
Added fade-in and fade-out animations for dialog boxes.