basic select dialog working