moved one-line action listener to anonymous ones