Simple modal implementation, and more dinamic code