Improved performance

Improve rendering performance using VBO.
Fix some UI bugs