changed footer to a statepane and fixed up dock closing to not be awful.