fixed download button visibility
moved from PATH_INFO to REQUEST_URI