added sahredpreferences to life counter AND fixed UI