Fixed GET route errors and updated select function