onitemclicklistener in main

small adjustments