References #123 - Made the open and close methods compatible for mobile devices