Handlebar templates implemented, there may still be a few issues