introduced localstorage + made some amends to key controls