Adding setting button
Changing trigger to index
Changing local storage logic