added jquery functionality to pages