improve the condition to open committia
restrict by window width
about hooks