You already initialized modal above. Why modal is initialized again?