Implement modal completely