fixed issues with button placement on resizing, added a location indicator (in pixels) to debug mode