Added AppAPI.hide function to hide the current plugin window