hiding/showing bug fixes, resize fixes