proper stacking and focus behavior

- reduced number of debug prints with XPRINTF