style and fix to popup panel autohide bug