add methods and handlers to manage application state