script at the end of the layout