Adding functionality to action listeners
More work on action listeners and UI