fixed modal stacking issue
added register modal