tidied up functions and display selected options in results box