modal's functionality added