rectangled inputs added; zoom and pan functionality added