check if localstorage , status variable is defined