added onclicklisteners and onItemSelected listeners