Add next function in appDetail.html