fixing brackets and adding an empty listener

See title.