delete first draft
separate functions from app, implement click handler