change order for checking if the user is holding shift when selects and element