added web_control
control in procedures for yusuf's web interface