refactor activity input and display