Changed invalidate to postInvalidate to allow for non-UI threads