Adds some work on closing, opening and saving tabs