-add select method for main activity