tab closing fully implemented

some bugs while restarting mainActivity, remembers the last path in some
cases, and loads list rewriting the database values
Merge pull request #12 from vishal0071/master

tab closing fully implemented