shuvonaz :
i know the i7 4790 is more powerful but the newer processor is i5 6500, and socket for the i7 is older, which will be discontinued
Performance differences between 4th and 5th gen. are very small. Considering that an i5 is sufficient for your needs, because you consider a 5th gen i5, you should actually go for a 4th gen. i5 4690, 4590, 4570, 4440, 4460 etc. or what fits your needs best.
Not only will the CPU and mainboard be sufficient for anything for the next years, it will also save you a lot of money, which you can either use for more future or present upgrades, or to invest in other things.