added server side script to handle forms