Still working on auto open functionality