add license info
fix loading view and refactor