Updates the modal behavior and some styles.