Fix pin positioning and resize, esc key, etc.