Use $.showCustomModal instead of full hardcode

As promised, here is the fixed version. It turned out the missing buttons were caused by using $.showModal instead of $.showCustomModal.