settings functionality added.