added script definitions within the subpages of the controllers