Fix function signature
Fix attachment download link in smartmobile view