Fixed layout problems. Added error pages

Fixed issues with jquey and jquery ui.