stable modal implementation with styling