added select functionality

added some padding and fixed some record issues