moved script to bottom of layout