Changes to select function
Added properties up to ready function