Indians can transit through UAE without any visa until 8 hours. You have to apply for a transit visa only if your flight is after 8 hours from the UAE. But you cannot exit the airport in these transit times as you do not hold a valid visa to exit the airport.