Add border size and pan offset configuration
border UI added

not functioning yet