I did check out your file. But I am really confused because you have variable named the same as function name (e.g.  showComponent).

I do not know what the purpose for those functions. Please explain in detail what you want to do and the way you try to implement.