add pattern and distribution tabs and improve trend tab