Re-factoring
Improve getting bound of current function
Set name of helm header and add error check