Re-implement 'open folder' and 'view xml' functions