adding record selection component