fixed bug in rendering pm templates, convert equip id coming from url to int to properly find in database