script for posting controller data