Fixed layout and javascript bugs.