Pull preview activity functions to inputactivity.