update 2.0

rewrite using code igniter