fixing some errors and adding javascript confirmation in article feature