add jquery ui and fix layout bug