add localStorage api and showAlert function