scripts moved to bottom
state link added