Ministry of religious affairs should take over all mosques.The imams should be appointed and paid a small salary by the ministry.The locals who use the mosque can contribute towards the salary too.If the imam does not follow his employment contract he should be dismissed.