implements click event and ui display